Skip to content

branch-4.1: [fix](insert overwrite) delay overwrite partition routing until incremental open #63209#63264

Open
github-actions[bot] wants to merge 1 commit into
branch-4.1from
auto-pick-63209-branch-4.1
Open

branch-4.1: [fix](insert overwrite) delay overwrite partition routing until incremental open #63209#63264
github-actions[bot] wants to merge 1 commit into
branch-4.1from
auto-pick-63209-branch-4.1

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Cherry-picked from #63209

…mental open (#63209)

### What problem does this PR solve?

Problem Summary:

In auto-detect insert overwrite, BE sender could publish newly replaced
temporary partitions to local row routing before incremental open
finished on target BEs.

The race was:

1. One sender calls FE `replacePartition` and receives new temporary
partition/tablet metadata.
2. The sender records the new partition id and replaces local
`_vpartition` routing first.
3. Another concurrent batch can then route rows to the new tablet.
4. The first sender has not finished incremental open yet, so the target
BE may not have created the delta writer for that tablet.
5. The target BE returns `unknown tablet to append data`.

This PR makes the sender finish `_create_partition_callback`, including
incremental open/open_wait, before publishing the new partition/tablet
to local routing and marking the new partition as handled.
@github-actions github-actions Bot requested a review from yiguolei as a code owner May 14, 2026 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant